package bulk_param.numspe.controller;

import java.awt.Color;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.BorderFactory;

import bulk_param.view.NumSpe_Open_View;


public class ColorErrorNumSpeController implements MouseListener{
	
	private NumSpe_Open_View numSpe_Open_View;
	
	public ColorErrorNumSpeController(NumSpe_Open_View numSpe_Open_View){
		this.numSpe_Open_View=numSpe_Open_View;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		if(e.getSource().equals(numSpe_Open_View.widerDropDownCombo)){
			numSpe_Open_View.widerDropDownCombo.setBorder(BorderFactory.createLineBorder(Color.lightGray));
		}
		
		if(e.getSource().equals(numSpe_Open_View.txtZABPQ)){
			numSpe_Open_View.txtZABPQ.setBorder(BorderFactory.createLineBorder(Color.lightGray));
		}	
		
		if(e.getSource().equals(numSpe_Open_View.dateEditor)){
			numSpe_Open_View.dateChooser.setBorder(BorderFactory.createLineBorder(Color.lightGray));
		}
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}
}


